package com.study.service.impl;

import com.study.mapper.DepartmentMapper;
import com.study.pojo.Department;
import com.study.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> getAll() {
        return departmentMapper.getAll();
    }
}
